<!DOCTYPE html>
<html>
<head>
    <title>设备信息</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="col-sm-1" style="padding-left:5px;padding-right:5px;">
                <select v-model="q.key" class="form-control" name="selQueryKey" id="selQueryKey">
                    <option value="">查询条件</option>
                    <option :value="list.code" v-for="(list,index) in searchKeyDictInfo" :key="index">{{ list.value }}</option>
                </select>
            </div>
            <div class="col-sm-2"  style="padding-left:5px;padding-right:0px;">
                <input type="text" class="form-control" v-model="q.value" @keyup.enter="query" placeholder="输入查询内容">
                <a id="inputClear" class="glyphicon glyphicon-remove btn form-control-feedback" style="pointer-events: auto;"></a>
            </div>
            <a class="btn btn-primary" @click="query" style="margin-left:10px;"><i class="fa fa-search"></i>&nbsp;查询</a>

			<#if shiro.hasPermission("water:tdeviceinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("water:tdeviceinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("water:tdeviceinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <a class="btn btn-primary" @click="outxls"><i class="fa fa-download"></i>&nbsp;导出</a>
        </div>
        <div id="content" class="row-fluid" >
            <div class="col-md-2 panel panel-default">
                <ul id="deptTreeLeft" class="ztree"></ul>
            </div>
            <div class="col-md-10">
                <table id="jqGrid"></table>
                <div id="jqGridPager"></div>
            </div>
        </div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">主机通道</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.masterNum" placeholder="主机通道"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备二管号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.slaveNum" placeholder="设备二管号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采集卡号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.cardNum" placeholder="采集卡号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备区域</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.deviceArea" placeholder="设备区域"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备小区</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.deviceNei" placeholder="设备小区"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备楼号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.deviceBuild" placeholder="设备楼号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">设备单元</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.deviceUnit" placeholder="设备单元"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采集通道</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.routeNum" placeholder="采集通道"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">表号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.meterNum" placeholder="表号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类型码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.typeId" placeholder="类型码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">内部名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.neiName" placeholder="neiName"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注1</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.memo1" placeholder="备注1"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注2</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.memo2" placeholder="备注2"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注3</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tDeviceInfo.memo3" placeholder="备注3"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/water/tdeviceinfo.js?_${.now?long}"></script>
</body>
</html>